package com.gzyz.cheetah.exception;

import com.gzyz.cheetah.enums.Result.ResultStatus;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 业务异常类（自定义异常类继承该类）
 * @author xclhove
 */
@Getter
@NoArgsConstructor
public abstract class AbstractServiceException extends RuntimeException {
    private ResultStatus status;
    private String message;
    
    /**
     * 业务异常类构造函数
     * @param status 状态码
     * @param message 信息
     */
    public AbstractServiceException(ResultStatus status, String message) {
        this.status = status;
        this.message = message;
    }
}
